@extends('admin::layouts.master')
@section('title') 检测站开放日期
@endsection
@section('tab')
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body ">
                        <form class="layui-form layui-col-space5">


                            <div class="layui-inline layui-show-xs-block">
{{--                                <button class="layui-btn layui-btn-normal"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>--}}
                                <a class="layui-btn" onclick="location.reload()">
                                    <i class="layui-icon layui-icon-refresh"></i>
                                </a>
                            </div>
                        </form>
                    </div>

                    <div class="layui-card-body layui_overflow_y ">
                        <table class="layui-table layui-form">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>ID</th>

                                <th>开放日期</th>
                                <th>上午时间段</th>
                                <th>上午可检测数量</th>
                                <th>上午已预约</th>

                                <th>下午时间段</th>
                                <th>下午可检测数量</th>
                                <th>下午已预约</th>

                                <th>创建时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($data as $key=>$value)
                                <tr>
                                    <td>{{$key+1}}</td>
                                    <td>{{$value['id']}}</td>
                                    <td>{{$value['day']}}</td>
                                    <td>{{$value['am_time']}}</td>
                                    <td>{{$value['am_num']}}</td>
                                    <td>{{$value['am_order']}}</td>
                                    <td>{{$value['pm_time']}}</td>
                                    <td>{{$value['pm_num']}}</td>
                                    <td>{{$value['pm_order']}}</td>
                                    <td>{{$value['created_at']}}</td>
                                </tr>

                            @endforeach
                            @if($data_count == 0)
                                <tr>
                                    <td colspan="66" style="text-align: center">暂无数据</td>

                                </tr>

                            @endif
                            </tbody>
                        </table>
                    </div>
                    <div class="layui-card-body ">
                        <div class="page">
                            {{$list['page_link']}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

@endsection


@section('tab_js')
    <script>
        layui.use(['laydate', 'form'],

        );
    </script>
@endsection




